﻿<%@ Page Language="C#" Title="Страница трека" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="TrackPage.aspx.cs" Inherits="TrackPage" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script src="../audio-player/audio-player.js" type="text/javascript"></script>
    <script type="text/javascript">
        AudioPlayer.setup("../audio-player/player.swf", {
            width: 300,
        });  
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Покупайте...
    </h2>
    
    <asp:ListView ID="BoughtTrack" runat="server">
        <LayoutTemplate>
            <div id="itemPlaceholder" runat="server">
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <div>
                <h3 class="m_title">
                    <%#Eval("Name") %>                
                    &nbsp/ &nbsp
                    <%#Eval("Price")%>$
                </h3>
            </div>
            <div style="font-size: small;">
                Posted <a href="" style="color: SteelBlue3;">11/21/2011</a> |
                <img src="../images/icons/comments.gif" alt="ff"><a href="" style="color: SteelBlue3;"> Comments (7)</a>
            </div>
            <br />
            <br />
            <p id="audioplayer_<%#Container.DataItemIndex %>">
                Alternative content</p>
            <script type="text/javascript">
                AudioPlayer.embed("audioplayer_<%#Container.DataItemIndex %>", { soundFile: '../<%#Eval("FilePath")%>' });  
            </script>
            <br />
            <br />
            <asp:Image ID="Image1" runat="server"  ImageUrl="~/images/office/soc.bmp"/>
            <br />
            <br />
            <br />
            <br />
        </ItemTemplate>
    </asp:ListView>
    <div id="ListT">
    <table>
        <tr>
            <td><asp:LinkButton style="border: 1px double black; width: 200px;" ID="FavButton" runat="server" onclick="AddToFav_Click">Добавить в избранное</asp:LinkButton>
            </td>
        </tr>
        <tr><td><br/>
        <asp:LinkButton  style="border: 1px double black; width: 200px;" ID="BayButton" runat="server" onclick="Bay_Click">Купить</asp:LinkButton>
        </td>
            
        </tr>
       
    </table>
    <br />
     <br/>
   
    </div>
    

</asp:Content>
